package com.krisyu.flyweightPattern.template;

/**
 * @DATE 2022/1/10
 * @Author KrisYu
 * @Description
 */
public class Client {
    public static void main(String[] args) {
        for (int i = 0; i < 20; i++) {
            String key = "id" + i;
            FlyweightFactory.getFlyweight(key);
        }
        Flyweight concreteFlyweight1 = FlyweightFactory.getFlyweight("id10");
    }
}
